﻿@model Citi.Scheduler.WebUi.Models.LibraryVersionModel

<script type="text/javascript">
    $(function () {
        if (parseFloat(navigator.appVersion.split("MSIE")[1].split(";")[0]) < 10) {
            $("#moreFile").show();

            $("#moreFile").click(function () {
                $("#divInputs")[0].innerHTML += '<input type="file" name="files">';
            });
        }
    });
</script>

@using (Html.BeginForm("Upload", "LibraryVersion", FormMethod.Post, new { id = "formLibraryVersion", enctype = "multipart/form-data" }))
{
    <span>DLL(implementing IExecutableRoutine)</span>
    <input type="file" name="files" id="fileDll" accept=".dll" />
    <br />
    <br />
    <span>Dependencies</span>
    <input type="file" name="files" id="fileDependencies"  multiple="" />
    <div id="divInputs"></div>
    <a href="#" id="moreFile" style="display:none">More file</a>
    <br /><br />          
    <input type="submit" value="Upload" />     
    @Html.HiddenFor(model => model.Id)
}
